import Vue from 'vue'
import checkPermission from '@/utils/premission'

Vue.directive('permission', function (el, binding) {
  if (!checkPermission(binding.value)) {
    el.style.display = 'none'
  }
})
